#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void init(int* str, int sz)
{
	for (int i = 0; i < sz; i++)
	{
		str[i] = 0;
	}
}
void print(int* str, int sz)
{
	for (int i = 0; i < sz; i++)
	{
		printf("%d ", str[i]);
	}
	printf("\n");
}
void reverse(int* str, int sz)
{
	int left = 0;
	int right = sz - 1;
	while (left < right)
	{
		int temp = 0;
		temp = str[left];
		str[left] = str[right];
		str[right] = temp;
		left++;
		right--;
	}
}
int main()
{
	int arr[] = { 1,2,3,4,5,6,7 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	print(arr, sz);
	reverse(arr, sz);
	print(arr, sz);

	return 0;
}